Fix set security settings