Compatability fix for Ruby 2.0