fix #1199