Fix wrong event listener
Merge pull request #11 from omares/master

fixes #10