Remove erroneous specific code from template