fix a lot bug in PairwiseRegistration and related sections