fix #1162