fix then joining models with "foreign_key_attr_name" specified