TC: Fixed bug in direct (browser) template rendering