Gust, Twister, Thunder, and Sky Uppercut can hit Pokemon on the invulnerable turn of Fly. If the user of Fly or its opponent has No Guard, any move can hit the Flying Pokemon. If the opponent previously used Lock-On or Mind Reader, any move can hit the Flying Pokemon. If you still believe there is a glitch, post on the Pokemon Online forums.