Fix bug: temp file for validate is not used and import from local deleted original file