fix save path not initialized.
Merge pull request #5214 from Dhilan007/develop_crash

fix save path not initialized.