Workaround https://bugs.ruby-lang.org/issues/8182