Fix cursor usage