Fix coverity problem #3590