Fixed cursor positioning.