cleanup
fix issue where cursor position changes on change