fix relationships cp type lookup