fix new id creation for map elements