Fix missing self prefix with curTerm

curTerm is missing a "self." in front of it in parse(), making it look for a global variable instead of the class variable.