fix typo in run_hooks