fix incorrect object call in timeseries.fun