fix #861