Fixed an issue that prevented the cursor from hiding