timeseries/common: fixed bug introduced in last commit