Fix a bug when read the data