Fix bug in handlebars_engine