Fixed file read errors