fix data string assembly