fix error 500 when strip tag are used on template