fixing bug in handlebars