fix #968