fix #1878