fixed search for category