fix bug with assembleData