fix coverity_scan problems