Fix exception when irradiation is on and opening new file