Fix ruby_errinfo error