Fix bug when file not exist