Fixed bug in PerformRegistrationTwoVolumes