Reposition the cursor after updating vars