bug fix for delete template_tags