Use valid hookFor signature

This will fix issue #28