fix the crash on get weather