fix template name restriction