fix foreign key typos