Fix the data type reverse issue