fix file read error