The best way to avoid this issue is to resist opening the oven door before the end of the baking time. If you do, you risk the cooler air interfering with the cooking process and the middles might sink. Yes, you can disguise this afterward with whipped cream on top, but it’s also useful to know how to avoid this in the first place.