fix #683