bug when calling story.segment