Fixed error in Ability class