Some people do have a period when they are early PG and not miscarry.

If you have had a loss, sometimes it can take a little while for the hormones to settle down so you still my test +ve.