scope fix for events
Merge pull request #261 from glenwks/master

scope fix for events