fixed bug when file not found