Fixed use of metadata().