Fix problem with Ruby 1.8