Further bug fix when irf periods = 0