fixed another issue with referral count merging