Italian wedding cookies may go flat if the dough is too warm when placed in the oven, causing the butter to melt too quickly and result in a flatter cookie. To prevent this, try chilling the dough before baking and ensuring that the oven is properly preheated. Additionally, using fresh baking powder can also help the cookies maintain their shape.