fix re-registration