fix #776