fix jumping direction