fix a bug when reading gb file