- fixed registerClient