fix weather compile