fix #684