fixed a bug of data type