fix #1019