Renaming sketch and losing it

Hi, so I just renamed a sketch to a sketch that I just deleted, and I noticed it gives this folder icon thing in the sketch book. This is the second time it happened, so I also made sure to click on "save as.." to a completely different name. But when I refreshed, the sketch I deleted is gone of course, but the new renamed one also doesn't work AND it seems like the "save as.." doesn't work. So it seems like if I delete the file and rename the current one to the deleted one then everything just disappears. Is there any way I could recover the sketch? I also uploaded it to the arduino if that helps.

Edit: nvm, looks like I had the same issue as the post below. Downloading and re-uploading solved the issue.