It should be easy to replicate the issue!
If the number that follows the name of the layer represents the order of the layer that appear in the content pane (in case of having layers with similar names in the content), then how come this number is “2” in the screenshot below considering the fact that there are no layers in the content that have similar names?
All commands are run from inside the model. The layer in the content are added with “add to display” option
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine