More improvements for security group syncing