Agents Heterogeneity, Financial Fragility and Learning