Skill might not be debuffing?

Hi there guys, I had some help making a skill a while back that debuffs the user. It is supposed to debuff the user's attack and defence twice but it looks like it is only debuffing the user's attack. Here is what the code looks like:
a.add_debuff(2,3); a.add_debuff(2,3); b.result.critical=true; a.atk * 8-b.def

if I just do a.add_debuff(3) then I get null when the skill goes off. a.add_debuff(2) works fine when I test it.
It might be that you are getting null for debuffing stat 3 because you haven't given it any turn duration. Do you still get null if it reads a.add_debuff(3,3)?
So sorry for the late reply, was trying some stuff from another forum. I think you might have been right about that. I went ahead and did a.add_debuff(3,3) and I stopped getting null and the character's defense was lowered! I had no idea the second number meant the number of turns it debuffs. Still testing everything out to make sure it's working as intended.

Original thread: https://forums.rpgmakerweb.com/threads/skill-might-not-be-debuffing.90905/