fix #1082