fix #1080