fix #1059