fix #783