Melanie has already fixed your issue...
...but just to be clear...
They don't have the same number. You have to examine the number before you click on it. Because after you click on it, it will redirect to the newly merged number -- such that it appears to have the same number. It doesn't.
Nor is there anything wrong with the merge (though its indirectly the cause).
The problem is the records connecting the merged away profile, to the parents, etc, are not getting updated properly when the merge happens, and then has to be manually updated to remove the "ghost" profile connections.