Fix security configuration