This usually happens AFTER you save the replay, so you decide to name it something cooler, just because you were rushed to save it originally, so you edit the name, and boom. Player 1 or 2 is uke, instead of the original opponent.
Also on this subject of replay making, please take a look at my thread a few threads below this