Bug multiple referrals cause error.

https://www.pivotaltracker.com/story/show/71186566