fixing bug with abilities