Fixed bug crashing when the player was on the bottom.