fix warning on ruby 2