Fixed bug where client was registered and instantnly unregistered on the hub