Fixed a bug with abilities