Spotting after sex

I'm 22 weeks and have spotted after sex. It only really happens when I wipe and is a brownish color. No cramping or pain. Has this happened to anyone and how long did it last after you had sex? My doc said its normal but it still worries me.