1.8.7 fix

This works for me in ruby 1.8.7!