fix category repository