fix issue #2772

fix issue #2772