Fix manageHook.