fix segment.io integration.