improve the map reset