fix scope from global to local
Merge pull request #48 from rafis/master

fix scope from global to local