fixed ruby2.0