Fixed some bugs, in moment to save a KM of map.