fix missing parameter

fix missing parameter in weather function that possibly causes incorrect
weather behavior.