correction in the code of mapThreadTimeSeries