some fixes in recursive deleting