Fixed foreign keys that are types, not strings