the cursor now returns to the right place!