bug fix in content_template