Story highlights

A Boeing 777 jet from Honolulu to Guam was diverted to Midway Island

The problem was a cooling fan, a United Airlines spokeswoman says

Passengers and crew spent seven hours on the Pacific atoll, a United spokeswoman says

Passengers were taken to Guam on Saturday, and the plane was back in service Sunday

CNN  — 

A Guam-bound United Airlines flight that was forced to land on remote Midway Island after pilots detected an electrical odor experienced a mechanical problem, the carrier said Monday.

The Boeing 777 was carrying 335 passengers and 13 crew from Honolulu when it diverted to the Pacific atoll last Thursday, United spokeswoman Mary Clark said.

Another plane returned the passengers to Hawaii on Friday after seven hours on the island, and they made it to Guam the next day, she said.

United blamed the diversion on a cooling fan problem, which mechanics fixed, Clark said. It has returned to service.

American flight from London forced to sit on Tulsa tarmac after engine issue

Pilot buys pizza for delayed passengers

Evacuation slide deploys midair on United flight

Plane makes unscheduled landing in Phoenix over ‘erratic’ passenger

CNN’s Michael Martinez, Chris Welch, Mayra Cuevas and Carma Hassan contributed to this report.