fix typo

Please backport https://github.com/ruby/ruby/pull/500 and https://github.com/ruby/ruby/pull/506