fix intermittent spec failure