Avoiding deleting Input/Output when selected