fix ball converge algorithm