fix warning on ruby 2.2