fix #1048