Fixed file reading