Fix bad foreign key definition.