fix call to template variable

fix variable issue