fix cursor_moved