fix the on save path error.