Fixing an issue in the reading of the files