fixed typo for assemble function
Merge pull request #5060 from bcoca/assemble_fix

fixed typo for assemble function