fix #799