fix #1117