fix #1070