coverity minors

Addresses coverity CIDs 719106 and 1223318.