Fix a subtle scoping bug which.