Fix hide bug