Corrected orientation bug in proper pair check.