Fix security groups filtering.