fix bug when file does not exist