Slowly melt the marshmallows to avoid this. If you overcook them, the sugar will burn and the rice crispy treats will harden.