fix #862