fixed some cursor issues