Fixed horrible error which created an extra HookManager and didn't dispose it