fix an exception at Ruby 1.9.3