fix #971