fix #1060