Ensure you quickly place the marshmallow right after frosting the treats so that the marshmallow sticks. If the frosting has already started to form a crust, dab a very small amount of fresh frosting on the back of the marshmallow before attaching it.