Fixed cursor displaying at incorrect position