It’s likely the sugar syrup wasn't hot enough or you've exposed it to too high humidity. Keep the tanghulu fruit in a cool place and make sure your sugar is cooked to exactly 300°F/150ºC before using.