Fix update foreign keys since changed to dict.