Fix saving multiple files at once with the same content
Ensure we only overwrite the edited entry and not also the previous one.