fixing the cursor