Avoid stack level too deep on Ruby 1.9.3