Fixed the convergence check of the registration