Fix to fileio.c