fix removeHooks