fix SemanticTemplateStatementsCollector