archive: fixed bug in timeseries with no channel