foreign key fix version 1