Fixed scope issue.