fixes strange rspec behavior