Yes. You are correct. It was a bug in the program.
I should have typed I=IC+IR in the code,  but I typed in I=I+IR.
Now, it is fixed. Thank you!