The best way to avoid it is to taste how sour the green mangoes are and then reduce the quantity that you add.