Fixing delete action.