Fixed cursor problem.