fix the rspec errors