During the initial recording of actions against two elements with the same element name, the recorder adds the new steps with identical element names, for example "Span". After checking the elements explorer, we see that those steps are against two different elements - "Span" and "Span0", but this is not clear from the test step name.
When you record new steps against the second element "Span0", the step name is correctly referring to the used element (see attached screenshot).