fix #2434 remove side effect of #1638

fix #2434 remove side effect of #1638