fix in Template.java
fix that the first char after a node is missing