models.py: one more bug fix for time series