Fix intermittent spec failure