Fix: hookmanager code