Fixes to cursor fn's.