Fixed scoping issue.