fixed rspec runtime error