fix the rendering of the token in the tpl