BUG: typos in lappend, wrong mask index in sparseDecom2