Fixed hook call
Testing for hook name before calling