fix #1366