cursor draw fix