fix #1874