fixed some abilities-related bugs