fixed bug gettimeseries