fixing soft delete issue