fix belongs_to model bug