resolved bug when retrieving a list of locations