This can happen if the sweet potatoes were overcooked or if too much liquid (like cream) was added. It's crucial to bake the sweet potatoes until just done and add liquids sparingly.