Bug fix in timeseries plot