fix #966