fix #1087