coverity found minor bug #3590