Cursor position fixes.