fixed security mode for templates