An American Airlines flight from New York to Madrid had to be rerouted to Boston after a crack was discovered in the plane’s windshield.

American Airlines Flight 94 safely landed at Boston’s Logan International Airport around 9:45 p.m. on February 28 after departing from John F. Kennedy International Airport around 6:30 p.m. CT, according to The Dallas Morning News.

The Fort Worth-based carrier described the event to Fox News Digital as a “maintenance issue” and told USA TODAY in a statement that the aircraft has since been “taken out of service to be inspected by our maintenance team.”

CLICK HERE TO GET THE DALLAS EXPRESS APP

Both airlines and the aircraft manufacturing industry have experienced a rash of negative publicity in recent months. Last month, The Dallas Express reported that an American Airlines plane overshot the runway while arriving at Dallas/Fort Worth International Airport because of a purported braking malfunction. This event followed a report that a Boeing factory employee identified improperly drilled holes in new 737 Max jets. And in January, a 737 Max 9 flying from Portland to Los Angeles had to make an emergency landing after a door plug was blown off just after takeoff.

“We never want to disrupt our customers’ travel plans and apologize for the inconvenience this has caused,” said Derek Walls, a spokesperson for American Airlines, following Wednesday’s incident.

One passenger aboard Flight 94 told Boston 25 News the incident “was kind of scary, the flight was very shaky, and when they said the windshield cracked, I got a bit scared.”

No one was injured in the incident, but passengers were forced to spend the night in Boston. Their expenses were reportedly covered by American Airlines.