fix algebraic to numeric