fix bird flap bug