helper: fix flaky capture command