fixed the conditions on the search home page