fix #1026