Fixes Coverity CID 1054804 & 1195088