fix bug in NumSplit