Fixed stupid bug in algebraic comparison