fixing nil class Ability bug