bugfix for no-html templates