fixed templating engine source