repair the map bug