fixed some ui datatype bugs