fixed file read.