fix #2549