fix #1879