fix a few 4706 warnings