getLocations fixed