fix root node templating around whitespace
fix root node templating around whitespace