Fixed a scoping issue.