fixed warning when file not found