fix cursor hiding