Small fix to DOMTemplate