Fixed cursor problem