Fixed problem where htmls weren't templated