fix abs(IV) bug