fix error on pageController, CategoryAction, when repo is empty