Bug fix in Segment::moveTo