fixed the map error