Fix cursor hiding.