fix relationships