bug fix in client re-registration