Fix a bug in the endpoint registration client.