fix jump while falling

fixes #419
Merge pull request #662 from mucaho/fix_jump_falling

fix jump while falling