Corrected bugs in extract.metadata.asd()