Fixed a lot of cursor issues.