fixed forecast script