I've always had this problem, haven't tried very hard to solve it, just assumed it was permanent.
Wash hot with sports detergent and do laundry asap after your workout
Wash hot with sports detergent and do laundry asap after your workout