fix #1096