Fix intermittent test failure.