fix #1176