fix #1170