fix for ruby2.0