fix #1764