If you overmix your cupcake batter, you can end up with gluten development. If this happens your cupcakes may sink in the middle as they bake. To fix this overmixing issue try not to mix more than necessary.