Fixes hooks not working in some cases
Merge pull request #18 from JCDecaux/fix-hooks

Fixes hooks not working in some cases