correct minor bug for -ref #6970