Bug fix with irf restriction on period larger than 1