bug fixes in metadataExtractor