fixed invalid search sidebar hiding bug