fix call to template variable