fix #1032