Fixed: Error after enter a new location. The functionality to calculate the map extend doesn't work