Fix accidental redefinition of variable
This can lead to overwriting existing incrementally saved files instead of trying to find a new file name that doesn't conflict with existing files.