fixed ruby 2.0