Fix file_read bug