This fixes the error in ruby-2.0.x