fixed a bug in the forecast