Bug fixed when canJump parameter is false