fixed error hiding panels