Rename data$metadata to $metadata