segment: fix for new core API