Fix: ReferenceError: assignment to undeclared variable currentExpression

Fix: ReferenceError: assignment to undeclared variable `currentExpression`.