Fixes scoping error.