Fix syntax error in Ruby 1.8.7