fix bug that prevents install packages on some rubys