fix delete action