fix issues reported by Coverity