fix data convert problems