Fixed extra metadata output bug.