fix #682