I agree with Gerald and floatingAlso another way to help is an attic fanYou still need to insulate the ducts.
Don't forget to seal any leaks.
Insulate, Gerald is right.
You need to/should insulate the duct workThe cold inside the duct works travels to the heat side and makes it sweat Duct work should be insulated to prevent loosing the cooling into the attic as well as the heat into the attic It will cost you but it will save you a bunch more in AC and Heating bills.
I don't know that this will work but it's just a suggestionThis idea would be more for making a new tail instead of fixing the current tailTry stretching the yarn snugly across an ironing board, counter top, or table, something that can withstand heatNext cover it with a damp pillowcase or sheet and spread it out smoothThen use an iron on it with steam, and temp set to be safe for the material of the yarnDon't move too slowly or you may melt the fibers if they're polyester or nylonAfter a little bit, dump the water out of the iron and iron it again without steam to help dry everything up a bitRemove the sheet/pillowcase and let the yarn cool before removing it from the surface it's onMy guess is that this process should get the yarn to hold a straight shapeRemember to not iron directly on the yarn or that might melt the fibers to the ironThis might also work on the new tail if you have a way to brush or comb the yarn straight and hold it in place to iron it.