fix issue  3871