fix flying bug