Fix potential very rare test failure.