coverity fix 21821, 23153-55