fix #987