Fix cursor error reporting.