replace undefined with null when creating share set ops