fix pollution loop bug