[Issue 5971] Referral chasing is broken