fix intermittent test failure