fix rule in time series