bugfix for template post