fix relationships in Category