fix #1052