fix #697