Logic Fix to MathEngine.solveSystem()