fix category relationship