fixing crpv foreign key associations