Fixed bug related to hierarchy ability retrieval