fixed TOT bug
Merge pull request #9 from simonepigazzini/master

fixed TOT bug