fix #1566