Fix to Coverity cases 73417, 73420, 72759, 72639