fix #1072