fix jumpy cursor on redo