Affiliate unique click in multi site not working

Hi,

I found my Affiliates plugin did not work correctly in multi sites, I had a site named xxx.abc.com , when i click the link generated (the one with ?ref=something) , the clicks did not tracked at xxx.abc.com , and tracked in abc.com instead.

Please help.