Make sure the sourdough discard batter is not too thin. It should be like a pancake batter. Too thin and the batter will fall right off the onions. The flour will help keep the batter on the onions too.