correct locations foreign key set