Fix input/output errors appearing when reading older files. This is a cleanup,bugfix for version 6.16.0