Fixed compressed file reading