Fix a bug in the metadata proxy.