Fix issue with Ruby 1.9