Fixed scope building error.
Established a rule for building a local scope.