fixing cursor stuff.