Fix rendering of HTML template file