Fixing intermittent spec failure