Revert "Fix: hookmanager code"

This reverts commit 2bdf900db9217a61c8f15d74a17abb3ff3b539c5.