delete action npe fix