fixed a fault in flight search