Pregnant 3 weeks after MC

I randomly took a test and it was positive. I know it’s not left over from the MC because I had many negatives and a ultrasound after it.

I have had brown discharge last night and this morning and a cramp that was soo painful.

Not sure what to do. How do you think positive after an MC