fixed an error with hiding child