Fixed form relation mismatch and foreign key mismatch