Clear selection before applying operation.