Fixing file reader