fix bug on thm
Merge pull request #2003 from atm-alexis/3.6

fix bug on thm