Bug fix in fileio_class