IndexOutOfRangeException at SlapCommandFixed

Hi,
i got some out of range exceptions when i only used 1, or 2 parameters. Like:
/slap Toliman 1
/slap Toliman 1 1

I changed :

int damage = args.Length >= 2 ? int.Parse(args[1]) : config.DefaultDamage;
int intensity = args.Length >= 2 ? int.Parse(args[2]) : config.DefaultIntensity;
int amount = args.Length >= 2 ? int.Parse(args[3]) : config.DefaultAmount;​

to:

int damage = args.Length >= 2 ? int.Parse(args[1]) : config.DefaultDamage;
int intensity = args.Length >= 3 ? int.Parse(args[2]) : config.DefaultIntensity;
int amount = args.Length >= 4 ? int.Parse(args[3]) : config.DefaultAmount;

I get this in console everytime i try to use slap.

Failed to call hook 'CommandSlap' on plugin 'Slap v2.0.1' (IndexOutOfRangeException: Index was outside the bounds of the array.)
at Oxide.Plugins.Slap.CommandSlap (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x0010b] in <75dc2c54374847adb535fc44765309bd>:0
at Oxide.Plugins.Slap.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0005b] in <75dc2c54374847adb535fc44765309bd>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0

How are you using it exactly?

Through ingame chat with /slap <name>

Locked automatically