threw newelementexception
fixed saving when map is unsaved