Fix flexible search for category