fix crash of grit with ruby 2.0