Read by file fix bug