fix hideshow mode