Fixed failing serialization

Fixed failing serialization by checking for cases where there is only member of a given name.