fix error on ruby 2.0