Fixes the logging of security group in logs.