Fixed loading issue in the hook manager