Fixed arithmetic error in AngularComparator