hot fix for search, categories should be arrays