fix #1076