bug fix in treatings controller