Fixed before hook
Merge pull request #172 from gotar/fix-after-hook

Fixed before hook