To stop bad smells in your dishwasher, clean out food from the tub and run a dishwasher cleaner cycle.