setting corerct flag after soft delete