Fix hooking problem