fix bug 1872