fix cursor vanish