Hash[] got stricter in Ruby 2.0, fix a bug