fix #869