Fix task delete