fix #1035