fix delete bug (todo's were not deleted, events were deleted twice)