correct condition tpl
Merge branch 'issue-84' into develop