Fix a bug with forecast.