fix client registration