Most likely, you are not using fresh marshmallows. It's really important to use fresh marshmallows for this recipe, as they will melt easily and lead to soft and gooey treats.