fixing gem errors