Fixed foreign_keys