hopefully fixes the cursor movement