Bug fix with irf restriction on period larger than 1

(cherry picked from commit 2d6e51373813feba80c3aefc380b200893fd605c)