Syntax error drawCursor fixed