fixed null IPR errors