fixed erasing of map