cursor movement fix