fix for coverity security vuln. 1