fixed typo for assemble function

this should take care of issue #5057