fix run on ruby2