bug fix for custom file name data restore case