Error In Orders

Hi so I found an error recently where when I checkout as a non registered buyer and then after checkout is finished I log in with an existing account. The recently checked out order will be link to the account I just logged in with and I can see the unregistered order on my order search page.

Why is this happening?

Nevermind, I found what was wrong. Apparently there really is a part of a code in auth.php where they do that intentionally, which seems weird to me. I thought it was a bug.