fix numOfTimeSeries

more to fix , idea in comment