Recitified the IR calculation bug