Don't worry, this is on purpose so the URL in the browser's address bar looks pretty, but rest assured, your Referral ID is saved in the user's browser before it is removed.