Fix error on categories page