Fix security group lookup