Fix: mathops internal parsing bug

Credits to Jayesh Nambiar for reporting