fix bug in freemarker template