Fix for coverity 24253