Common causes include:

Ingredients that are too warm at the start
Recipes with high sugar or alcohol content
Insufficient churn time
To fix: run the cycle longer or freeze the finished product to firm it up.