Fixed before-listener example.
Merge pull request #119 from mzeis/patch-1

Fixed before-listener example.