fix deletion tasks