- finally fixed the case when file is unreadable