fixed the file read