fixed the segment manager class