fix hook hangs at long outputs