Ruby 1.9 support fix.