resolved issues that were detected by Coverity