The pilot changed direction abruptly, causing great panic in the plane