fixed an error in collisions when flying