fix the map bug