Bug fix when irf periods = 0