Fixing file reading