Fix recursive deletion