Fix foreign key.