fix bug on datatype transport