fix #1185