fix templates that use deprecated reference to attribute node