Fix lexical scoping issue.