bugfix for XGC reading.