Hack for Ruby 2