add patch for https://bugs.ruby-lang.org/issues/7629, fix #1435