Fixing error with selection.
delete action