fixed a bunch of bugs

We are getting an index out of range issue... for buffs and debuffs. We
will fix