Fix for the common invisible cursor problem