BUG: corrected a bug that would occur when correspondences are computed for the second time.