Fix Security configuration