fixing bugs in the PlayerMod commands