Fix two cases of using the wrong delete.