fix up mutable state bug.
fixup buildElems comment