Fixed problem with cursor not drawing