fix vstemplate problem