fixed PhotoMetadata and ImportedMetadata entities