Error where jump lands immediately

The jump function that was implemented when I first created the project suddenly stopped working.