Fixed referral creation bug when user logged in while sync in progess
Fixed referral creation bug when user logged in while sync in progress