Fixed bug with use of out-of-scope variable use.