fix #2297