Cakes usually sink in the middle if the oven door is opened early, allowing the warm air to escape.