fix recent coverity warnings