Bugfix for ruby 1.9.2

I think this behaviour must have changed from ruby 1.9.2