fix in templating engine