fix #2971