Minor change in callHook()