fix #1034