fix front end search issue with categories