fix save path not initialized.