fix #1511