Fix for weather segfault.