fixed a bug in I2 file reader