belongs_many_many related error fix