fix crash when deleting action running.