fixing gem issues