$ref2->{$k} = '' if not defined $v;