fix #994