fix #1099