Fix bug in ability.rb