fix #967