controller make foreign key correct