Fixed crash when using skill