fix #1037