Removed bug in add_metadata bypass code.