Fixed bug where --files was returning duplicate metadata fields when used with --target.