fix data conversion issue