A fuel overflow resulted in an Air Canada flight being evacuated at Toronto Pearson Airport Saturday morning.

A valve on the Calgary-bound plane was incorrectly set, Air Canada media spokesperson Peter Fitzpatrick said in an email. Fuel overflowed as the aircraft was being filled, and emergency services were called to the scene.

Passengers evacuated the plane as a precautionary measure, and the spill was cleaned up. The aircraft eventually departed to Calgary, and safely landed about 40 minutes later than expected.

The plane was an Airbus A321, with 161 passengers on board.

Correction - May 26, 2014: This article was edited from a previous version that mistakenly referred to the aircraft as an Airbus A121.

Read more about: