Put back condition for flipping the sign of the det.