fixed a bug of data parsing