fix failed rspec test.