fix #1081