Fixed a glitch with the cursor