Fixed a cursor problem