fixed another race condition in the spec