bug fix timeseries