fix a bug iwhen clea the map