fix #769