-event was not defined, fixed that
Merge pull request #2 from agustinhaller/master

Undefined variable fix