Fix crash when .bak file already exists.