fix gem issues