coverity: fix for #1245647