fix coverity problem #3590