Fixed foreign_key model