fix autodelete