Fix a bug in metadata tag inputs