Looks like black magic stuff ;_; I'll stick to not knowing why there is a 4 there.
On another note, I finally understood what IcemanBo was talking about. After a few debug message runs, I realized that even though the spell was set to deindex, it didn't actually deindex until the next iteration. An extremely miniscule problem, but I want to try to get a 5/5 on a spell and I feel making it efficient is the best way to go lol.