fixed issue with tpl calls