Update base.rb

Update to avoid throwing error in 1.8.7