modify safety protection on templates