fix #1027