fix #1274