fix #1320