small fixes for events
Merge pull request #41 from unary/events

small fixes for events