resolve gem errors