Fixes problem with hiding cursor in chrome