Fix cursor issue.