fix up some coverity issues