bugfix: SegmentError counted backwards (on unsigned int...)