Cursor glitch issue fix