fix extra categories query