Bug fix in extendForecast