Fixed some bugs related to location and map fetching.