fix issue #8102

fix issue #8102