fixing jump-while-falling-down-a-wall bug