fixed the hide bug