Correct the jumping logic.