fix #6050