Fixes bug in template name parsing

[#81525756]