Fixed loading bug when no categories selected