There was too much moisture (water) in the marshmallow. Cook the sugar mass. to the proper temperature and make sure you are using the right amount of water to hydrate the gelatin.