Fixed bug in rendering of html template.