fix #1058