Weather widget bug?

When I first boot the MacBook, the weather widget will not work properly. Just click on the WiFi toggle in the menu bar (WiFi already connected) and it takes a few seconds to grab the current weather normally. Is there a way to solve the problem?