fix #984