correct relations between models