Bug during file read fixed