freemarker error handle fix