fix #1740