Fix bug causing results to become hidden