fix for error in rspec