The most likely cause is overfilling the tins. Only fill the tins about 2/3 full or the cupcakes will rise too much and collapse on themselves.