fix location of hbs middleware