Fix wrong warning in StructureTemplate