localRegistration bug fix