fix #1078