The cake may be overbaked or it may not have been fed enough alcohol or juice after baking. To prevent this, be sure to check the cake regularly towards the end of baking time and feed it regularly until it's time to serve.