Sertraline and avoiding diarrhoea

I have been on sertraline for a while and have always suffered from diarrhoea. I have tried different types of food and have found that flapjack mixture seems to stop the diarrhoea. I have tried it out for a week and it seems to have worked. I am only going on my own experience but hope that this well help other people.