If a stool remains in your gut, it will continue to ferment, producing extra gas that can smell particularly foul. Try to have a drink with every meal and keep hydrated throughout the day.