Fixed a bug with the number of displayed abilities

fixes #347