Fixed int bug in tpl