fix #676