fix the data type issue