fix crash when using skeleton's ability