Fixed bug that disabled cursor for windows

Sorry about that