fix a few "dead stores" warnings