fix #770