fix #978