fix #2846