Fixed cursor catching.