bug fix for getAllLocations route