fixed some randSeg issues