Fixed error because not completing time series in the right time.