GetSegments - returned wrong var