Origin problems after coping a file

I have this piece, with the lateral ( red) and base plane (blue)... and the origin, no problem.

However, when I edit the sketch, I see other origin, red, that avoid me to put relations.

I have deleted all the relations and ad a new one, horizontal, but it is referred to the red origin not to the new one (blue)

Of course I could draw it again, but I want to undestand what happens when I copy a file and give a new name.

SolidworksGeneral