fixed client registration