fixed rendering of html files after setting the templateRoot manually