coverity fix for 15971