Fixed bug where the character could jump on air.