Fixing a typo in update_hooks that can cause a cryptic error/