bug fix in tres models