*Actually* fixed foreign keys.