Fixed scoping error.