Fix bugs in jumping