fix bug in handlebars variable