Fix tag closure in edit-metadata submission