fix for ruby2