fixing metadata fields