Fix bug about map clean for updating map.