Fixed invalid memory access bug in file-io.ss