Fixing scope issue.