bug fix for Ruby 2.0 ssupport