fix #1244