Change main file, then republish

I wanted to resize the main file in one of my listings that were already published. I made the change and published it and ended up with two listings. I deleted the first one so only the newly changed one was on etsy. What did I do wrong that it created a new listing instead of changing the one that was already published?