fixed a couple bugs with mana system