Fixed error in displaying the locations on the map