bug fixed in affiliate history